//
// Copyright (c) 2009-2011, chunquedong
//
// This file is part of ChunMap project
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >:=3)
//
// History:
//   2011-05-14  Jed Young  Creation
//

internal class LineAlgorithmTest : Test
{
   WktReader reader := WktReader()

   Void testHasIntersection()
   {
      g :=reader.read("LINESTRING(92.28571428571429 100.21428571428572,93.71428571428571 100.21428571428572,93.71428571428571 101.64285714285715,92.28571428571429 101.64285714285715,92.28571428571429 100.21428571428572)")
      g2 :=reader.read("LINESTRING(0.0 100.0,100.0 101.0)")
      LineString ls := g
      LineString ls2 := g2
      verify(LineAlgorithm.hasIntersection(ls.points, ls2.points))
   }
}